//
//  VideoViewController.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/13.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "VideoViewController.h"
#import "LTFVideoView.h"
#import "IsNight.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height
@interface VideoViewController ()
@property (nonatomic, retain) LTFVideoView *video;
@end

@implementation VideoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.translucent = NO;
//    self.automaticallyAdjustsScrollViewInsets = NO;
    [self createView];
}
- (void)createView {
    self.video = [[LTFVideoView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 64)];
    [self.view addSubview:_video];
    [_video release];
}
- (void)viewWillAppear:(BOOL)animated {
    UITableView *tableView = [self.view viewWithTag:1002];
    [tableView reloadData];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
